package com.rao.quartz.mapper;

import com.rao.entity.InfoGoods;
import com.rao.entity.UserGoods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: raoguang
 * @Date: 2022/05/28/22:26
 * @Description:
 */
@Repository
public interface InfoGoodsMapper {
    //获取所有商品信息
    List<InfoGoods> getAllGoodsInfo();

    //获取所有商品信息
    InfoGoods getOneGoodsInfo(@Param("goodsId") String goodsId);

    //获取用户对应的商品信息
    UserGoods getUserGoodsInfo(@Param("memId") String userId);

    //插入一条商品信息
    boolean insertOneGoodInfo(InfoGoods infoGoods);
}
